import QtQuick 2.0

Rectangle {
    width: m_text.paintedWidth
    height: m_text.paintedHeight

    property alias text: m_text.text
    property alias color: m_text.color
    property alias fontpointSize: m_text.font.pointSize
    signal sigPress

    AText {
        id: m_text
        font.pointSize: 18
    }

    MouseArea {
        id: m_mouse
        anchors.fill: parent
        onReleased: {
            sigPress()
        }
    }

    states: [
        State {
            when: m_mouse.pressed
            PropertyChanges { target: m_text; color: "#e1e1e1"}
        }
    ]
}

